
#ifndef _MEMBER_BScrollBar_H_
#define _MEMBER_BScrollBar_H_

#include <BPoint>
#include <BRect>
#include <BIcon>
#include <BScrollBar>

#define scrollbar_member(scrollbar)	((member_BScrollBar*)((BScrollBar*)scrollbar)->_ptr)

namespace BWE
{
	class member_BScrollBar
	{
	public:
		member_BScrollBar(BScrollBar* scrollBar);
		~member_BScrollBar();

		void freshHandleRect();

		BScrollBar*		boss;
		int				value;
		int				page;
		int				minimum;
		int				maximum;
		int				step;
		int				orientation;

		BIconHolder		handleIconVer;
		BIconHolder		handleIconHor;
		bool			hoverHandle;
		BRect			handleRect;
		bool			draging;
		bool			leftPress;
		BPoint			leftPressPos;
		int				leftPressValue;
	};
}

#endif